import { boot } from 'quasar/wrappers';
import { singularSdk, SingularConfig } from 'singular-sdk';
import SingularEvent from 'src/directives/singularEventDirective';
const config = {
  key: 'picalog_7b877dbe',
  secret: '37bb027cf5559cc81347a91ef4277fd2',
  productId: 'com.picalog.dev',
  deviceId: '2950de9a-f0c1-424c-b56c-401a18338daa',
};
export default boot(({ app, router, store }) => {
  singularSdk.inited = false;
  const singularConfig = new SingularConfig(
    config.key,
    config.secret,
    config.productId
  ).withInitFinishedCallback((initParams) => {
    console.info('Singular inited deviceId:', initParams.singularDeviceId);
    singularSdk.inited = true;
  });
  singularSdk.init(singularConfig);
  app.directive('singular-event', SingularEvent);
});
